package com.rao.travel.service.impl;

import com.rao.travel.dao.SysLogDao;
import com.rao.travel.pojo.SysLog;
import com.rao.travel.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Srao
 * @version 1.0
 * @className SysLogServiceImpl
 * @date 2019/11/5 22:17
 * @package com.rao.travel.service.impl
 * @description
 */
@Service
@Transactional
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    private SysLogDao sysLogDao;

    /*保存日志*/
    @Override
    public void save(SysLog sysLog) {
        sysLogDao.save(sysLog);
    }

    /*查询所有日志信息*/
    @Override
    public List<SysLog> findAll() {
        return sysLogDao.findAll();
    }
}
